﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:ig="http://schemas.infragistics.com/xaml"
	xmlns:OMANE_Modules_TauxGarantis_ViewModels="clr-namespace:OMANE.Modules.TauxGarantis.ViewModels"
    xmlns:OMANE_Modules_TauxGarantis_Views="clr-namespace:OMANE.Modules.TauxGarantis.Views"
    xmlns:OMANE_ui="clr-namespace:OMANE.Common.UI.Theme;assembly=OMANE.Common.UI.Theme" 
    xmlns:omaneui="clr-namespace:OMANE.Common.UI;assembly=OMANE.Common.UI" 
    xmlns:local="clr-namespace:OMANE.Modules.TauxGarantis"
	xmlns:igCA="http://infragistics.com/Chart"  
    mc:Ignorable="d"
	x:Class="Views.ViewScenarioCentral"
	x:Name="UserControl"
	d:DesignWidth="682" d:DesignHeight="508.25" Height="Auto">
    <UserControl.Resources>
    	<local:EnumTypeCodeToBooleanConverter x:Key="EnumTypeCodeToBooleanConverter"/>
    	<GridLength x:Key="LeftGridLength">0.595*</GridLength>
    	<GridLength x:Key="RightGridLength">0.405*</GridLength>
    	<Thickness x:Key="ResultatItemMargin">0,12</Thickness>
    	<Thickness x:Key="InfoTextMargin">20,0,0,0</Thickness>
    	<Thickness x:Key="InfoValueMargin">0</Thickness>
    	<Style x:Key="GaugeStyle" TargetType="{x:Type ig:XamRadialGauge}">
    		<Setter Property="Background">
    			<Setter.Value>
    				<RadialGradientBrush>
    					<GradientStop Color="#FFF7F7F7" Offset="1"/>
    					<GradientStop Color="#FFE5E8EB" Offset="0"/>
    				</RadialGradientBrush>
    			</Setter.Value>
    		</Setter>
    		<Setter Property="BorderBrush">
    			<Setter.Value>
    				<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    					<GradientStop Color="#FFFEFEFE"/>
    					<GradientStop Color="#FFBCC3CB" Offset="1"/>
    				</LinearGradientBrush>
    			</Setter.Value>
    		</Setter>
    		<Setter Property="Template">
    			<Setter.Value>
    				<ControlTemplate TargetType="{x:Type ig:XamRadialGauge}">
    					<Grid UseLayoutRounding="False" RenderTransformOrigin="0.5,0.5" VerticalAlignment="Stretch">
    						<Grid.ColumnDefinitions>
    							<ColumnDefinition Width="*"/>
    							<ColumnDefinition Width="30"/>
    							<ColumnDefinition Width="*"/>
    						</Grid.ColumnDefinitions>
    						<Grid.RowDefinitions>
    							<RowDefinition Height="*"/>
    							<RowDefinition Height="30"/>
    							<RowDefinition Height="*"/>
    						</Grid.RowDefinitions>
    						<Ellipse x:Name="background" Grid.ColumnSpan="3" Fill="{TemplateBinding Background}" HorizontalAlignment="Stretch" Height="Auto" Grid.RowSpan="3" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="10" VerticalAlignment="Stretch" Width="Auto" Visibility="Collapsed"/>
    						<Ellipse x:Name="OuterBorder" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Height="Auto" Grid.RowSpan="3" Stroke="#FFBBC3CB" StrokeThickness="1" VerticalAlignment="Stretch" Width="Auto" Visibility="Collapsed"/>
    						<Ellipse x:Name="InnerBorder" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Height="Auto" Margin="10" Grid.RowSpan="3" StrokeThickness="1" VerticalAlignment="Stretch" Width="Auto" Visibility="Collapsed">
    							<Ellipse.Stroke>
    								<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
    									<GradientStop Color="#FFA3AEB9"/>
    									<GradientStop Color="#FFE4E7EA" Offset="1"/>
    								</LinearGradientBrush>
    							</Ellipse.Stroke>
    						</Ellipse>
    						<ContentPresenter x:Name="RootElement" Grid.ColumnSpan="3" Grid.RowSpan="3"/>
    						<Ellipse x:Name="Anchor" Grid.Column="1" Grid.Row="1" Stroke="#FFBBC3CB" StrokeThickness="2">
    							<Ellipse.Fill>
    								<RadialGradientBrush GradientOrigin="0.739,0.102">
    									<RadialGradientBrush.RelativeTransform>
    										<TransformGroup>
    											<ScaleTransform CenterY="0.5" CenterX="0.5" ScaleY="0.856" ScaleX="0.856"/>
    											<SkewTransform CenterY="0.5" CenterX="0.5"/>
    											<RotateTransform CenterY="0.5" CenterX="0.5"/>
    											<TranslateTransform X="0.049" Y="-0.051"/>
    										</TransformGroup>
    									</RadialGradientBrush.RelativeTransform>
    									<GradientStop Color="#FFF9F9FA" Offset="0.008999999612569809"/>
    									<GradientStop Color="#FFCED3D8" Offset="1"/>
    								</RadialGradientBrush>
    							</Ellipse.Fill>
    						</Ellipse>
    					</Grid>
    				</ControlTemplate>
    			</Setter.Value>
    		</Setter>
    	</Style>
    	<CollectionViewSource x:Key="CollViewSegmentsRetenus" Source="{Binding SegmentsRetenus}">
    		<CollectionViewSource.GroupDescriptions>
    			<PropertyGroupDescription PropertyName="Value.chOutil.Format.typeAff.Name"/>
    		</CollectionViewSource.GroupDescriptions>
    	</CollectionViewSource>
    	<Storyboard x:Key="OnMouseEnter1">
    		<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="listBox">
    			<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
    		</ObjectAnimationUsingKeyFrames>
    	</Storyboard>
    	<Storyboard x:Key="OnMouseLeave1">
    		<ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="listBox">
    			<DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Collapsed}"/>
    		</ObjectAnimationUsingKeyFrames>
    	</Storyboard>
    </UserControl.Resources>
    <UserControl.Triggers>
        <!--<EventTrigger RoutedEvent="Mouse.MouseEnter" SourceName="xamRadialGauge">
            <BeginStoryboard Storyboard="{StaticResource OnMouseEnter1}"/>

        </EventTrigger>-->
        <!--<EventTrigger RoutedEvent="Mouse.MouseLeave" SourceName="xamRadialGauge">
            <BeginStoryboard x:Name="OnMouseLeave1_BeginStoryboard" Storyboard="{StaticResource OnMouseLeave1}"/>
        </EventTrigger>-->
    </UserControl.Triggers>
    <UserControl.DataContext>
        <OMANE_Modules_TauxGarantis_ViewModels:ViewModelScenarioCentral/>
    </UserControl.DataContext>

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="0.5*"/>
            <RowDefinition Height="0.5*"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>

        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        <GroupBox Style="{DynamicResource OMANE_GpeBox}" Header="Statistique sur le portefeuille" >
            <Grid>
                <Grid VerticalAlignment="Center">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="{DynamicResource LeftGridLength}"/>
                        <ColumnDefinition Width="{DynamicResource RightGridLength}"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock  Text="Somme des montants assurés :" Margin="{DynamicResource InfoTextMargin}" />
                    <TextBlock xml:lang="fr-FR"  Text="{Binding Path=ResultatsScenarioCentral.sommeCSR, StringFormat=\{0:N\}}" Grid.Column="1" Margin="{DynamicResource InfoValueMargin}"/>
                </Grid>
            </Grid>
        </GroupBox>
        <GroupBox Style="{DynamicResource OMANE_GpeBox}" Grid.Row="1" Header="Taux Garanti" >
            <Grid>
                <DataGrid IsReadOnly="True" ItemsSource="{Binding CommissionContractanteSegmente}" AutoGeneratingColumn="DataGrid_AutoGeneratingColumn" />

                <!--<Grid VerticalAlignment="Center">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="{DynamicResource LeftGridLength}"/>
                        <ColumnDefinition Width="{DynamicResource RightGridLength}"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock  Text="Commission contractante :" 
                                VerticalAlignment="Center"
                                Margin="{DynamicResource InfoTextMargin}" />
                    <OMANE_ui:NumericEditor
                              Value="{Binding CommissionContractante}"
                              Width="130"
                              HorizontalAlignment="Left" 
                              Grid.Column="1" 
                              Style="{StaticResource PercentageEditor}" MaxValue="1">
                      
                    </OMANE_ui:NumericEditor>
                </Grid>-->
            </Grid>
        </GroupBox>
        <GroupBox Style="{DynamicResource OMANE_GpeBox}" Grid.Column="1" Grid.RowSpan="2" Header="Niveau de mutualisation" >
            <Grid >

                <ListView 
                    Grid.Row="1" 
                    x:Name="Retenue" 
                    Margin="10"
                    ItemsSource="{Binding Source={StaticResource CollViewSegmentsRetenus}}">
                    <ListView.GroupStyle>
                        <GroupStyle ContainerStyle="{StaticResource ListViewOMANE_GroupItemStyle}" />
                    </ListView.GroupStyle>
                    <ListView.View>
                        <GridView>
                            <GridView.ColumnHeaderContainerStyle>
                                <Style>
                                    <Setter Property="FrameworkElement.Visibility" Value="Collapsed" />
                                </Style>
                            </GridView.ColumnHeaderContainerStyle>
                            <GridView.Columns>
                                <GridViewColumn Header="A" Width="400">
                                    <GridViewColumn.CellTemplate>
                                        <DataTemplate>
                                            <StackPanel Orientation="Horizontal">
                                                <Image Margin="0,0,5,0" Source="{Binding Value.chOutil.Format.typeAff.Name , Converter={StaticResource TypeNameToIconConverter}}"></Image>
                                                <TextBlock FontWeight="Regular" Text="{Binding Key}"></TextBlock>
                                            </StackPanel>
                                        </DataTemplate>
                                    </GridViewColumn.CellTemplate>
                                </GridViewColumn>
                            </GridView.Columns>
                        </GridView>
                    </ListView.View>
                </ListView>

            </Grid>
        </GroupBox>
        <GroupBox Name="gaugeContainer"  Style="{DynamicResource OMANE_GpeBox}" Grid.Row="2" Grid.RowSpan="5" Header="Ratio S/P" >
            <GroupBox.Resources>
                <Style x:Key="gaugeStyle" TargetType="{x:Type ig:XamRadialGauge}">
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type ig:XamRadialGauge}">
                                <Grid UseLayoutRounding="False">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="85*"/>
                                        <ColumnDefinition Width="30*"/>
                                        <ColumnDefinition Width="85*"/>
                                    </Grid.ColumnDefinitions>
                                    <Grid.RowDefinitions>
                                        <RowDefinition Height="85*"/>
                                        <RowDefinition Height="30*"/>
                                        <RowDefinition Height="85*"/>
                                    </Grid.RowDefinitions>
                                    <Ellipse x:Name="background" Grid.ColumnSpan="3" Fill="{TemplateBinding Background}" HorizontalAlignment="Stretch" Height="Auto" Grid.RowSpan="3" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="10" VerticalAlignment="Stretch" Width="Auto" d:IsHidden="True" />
                                    <Ellipse x:Name="OuterBorder" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Height="Auto" Grid.RowSpan="3" Stroke="#FFBBC3CB" StrokeThickness="1" VerticalAlignment="Stretch" Width="Auto" d:IsHidden="True" />
                                    <Ellipse x:Name="InnerBorder" Grid.ColumnSpan="3" HorizontalAlignment="Stretch" Height="Auto" Margin="10" Grid.RowSpan="3" StrokeThickness="1" VerticalAlignment="Stretch" Width="Auto" d:IsHidden="True">
                                        <Ellipse.Stroke>
                                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                                <GradientStop Color="#FFA3AEB9"/>
                                                <GradientStop Color="#FFE4E7EA" Offset="1"/>
                                            </LinearGradientBrush>
                                        </Ellipse.Stroke>
                                    </Ellipse>
                                    <ContentPresenter x:Name="RootElement" Grid.ColumnSpan="3" Grid.RowSpan="3"/>
                                    <Ellipse x:Name="Anchor" Grid.Column="1" Grid.Row="1" Stroke="#FFBBC3CB" StrokeThickness="2" d:IsHidden="True">
                                        <Ellipse.Fill>
                                            <RadialGradientBrush GradientOrigin="0.739,0.102">
                                                <RadialGradientBrush.RelativeTransform>
                                                    <TransformGroup>
                                                        <ScaleTransform CenterY="0.5" CenterX="0.5" ScaleY="0.856" ScaleX="0.856"/>
                                                        <SkewTransform CenterY="0.5" CenterX="0.5"/>
                                                        <RotateTransform CenterY="0.5" CenterX="0.5"/>
                                                        <TranslateTransform X="0.049" Y="-0.051"/>
                                                    </TransformGroup>
                                                </RadialGradientBrush.RelativeTransform>
                                                <GradientStop Color="#FFF9F9FA" Offset="0.008999999612569809"/>
                                                <GradientStop Color="#FFCED3D8" Offset="1"/>
                                            </RadialGradientBrush>
                                        </Ellipse.Fill>
                                    </Ellipse>
                                 
                                </Grid>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
                <Style x:Key="TickStyle" TargetType="{x:Type ig:RadialGaugeTickMark}">
                    <Setter Property="Template" >
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type ig:RadialGaugeTickMark}">
                                <Border Background="Black" BorderBrush="{TemplateBinding Stroke}">
                                    <Border.BorderThickness>
                                        <Binding Path="(local:RadialGaugeTickMarkGroupExtension.Size)" RelativeSource="{RelativeSource AncestorType={x:Type ig:RadialGaugeTickMarkGroup}}">
                                            <Binding.Converter>
                                                <local:DoubleThicknessConverter />
                                            </Binding.Converter>
                                        </Binding>
                                    </Border.BorderThickness>
                                </Border>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>

                </Style>
                <Style x:Key="LabelStyle" TargetType="{x:Type ig:Label}" >
                    <Setter Property="Template">
                        <Setter.Value>
                            <ControlTemplate TargetType="{x:Type ig:Label}">
                                <TextBlock>
                                    <TextBlock.Text>
                                        <Binding Path="Text" RelativeSource="{RelativeSource Mode=TemplatedParent}">
                                            <Binding.Converter>
                                                <local:PercentageConverter />
                                            </Binding.Converter>
                                        </Binding>
                                    </TextBlock.Text>
                                </TextBlock>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </GroupBox.Resources>
            <Grid>
            <ig:XamRadialGauge x:Name="gauge" Grid.Column="2" Margin="5" BorderBrush="#FF970505" RenderTransformOrigin="0.5,0.5" Style="{DynamicResource gaugeStyle}" Background="#FFB4A7A7" >
                <ig:XamRadialGauge.RenderTransform>
                    <TransformGroup>
                        <ScaleTransform/>
                        <SkewTransform/>
                        <RotateTransform Angle="6"/>
                        <TranslateTransform/>
                    </TransformGroup>
                </ig:XamRadialGauge.RenderTransform>
                <ig:XamRadialGauge.Scales>
                    <ig:RadialGaugeScale x:Name="def" EndAngle="360" RenderTransformOrigin="0.5,0.5" StartAngle="0">
                        <ig:RadialGaugeScale.Needles>
                            <ig:RadialGaugeNeedle AllowDrag="True" BorderBrush="White"  EndExtent="0.8" StrokeThickness="0" Stroke="#FF752BFF" Value="1"  />
                        </ig:RadialGaugeScale.Needles>
                        <ig:RadialGaugeScale.LabelGroups>
                            <ig:RadialGaugeLabelGroup Foreground="White" Extent="0.825" FontWeight="Bold" PreTerminal="-15" PostInitial="35" RenderTransformOrigin="0.5,0.5"/>
                        </ig:RadialGaugeScale.LabelGroups>
                        <ig:RadialGaugeScale.TickMarkGroups>
                            <ig:RadialGaugeTickMarkGroup Interval="5" StartExtent="0.7" BorderBrush="#FFB67474" BorderThickness="16,32,32,34" Background="#FF684F4F" PreTerminal="-15" PostInitial="35" Stroke="#FF4D2828" TickMarkStyle="{DynamicResource TickStyle}" local:RadialGaugeTickMarkGroupExtension.Size="2" />
                        </ig:RadialGaugeScale.TickMarkGroups>
                        <ig:RadialGaugeScale.Ranges>
                            <ig:RadialGaugeRange  Fill="Red" EndValue="115" InnerExtentStart="0.8" StartValue="35"/>
                            <ig:RadialGaugeRange EndValue="115" Fill="#FFEB7266" InnerExtentEnd="0" InnerExtentStart="0" OuterExtent="0.81" StartValue="85"/>
                            <ig:RadialGaugeRange EndValue="85" Fill="#FFFFF83C" InnerExtentEnd="0" InnerExtentStart="0" OuterExtent="0.8" StartValue="55"/>
                            <ig:RadialGaugeRange EndValue="55" Fill="#FF3CFF48" InnerExtentEnd="0" InnerExtentStart="0" OuterExtent="0.8" StartValue="35"/>
                        </ig:RadialGaugeScale.Ranges>
                    </ig:RadialGaugeScale>
                </ig:XamRadialGauge.Scales>
            </ig:XamRadialGauge>
                <ig:XamSegmentedDisplay Visibility="Collapsed"  Text="{Binding ResultatsScenarioCentral.SP, Mode=OneWay}" RenderTransformOrigin="0.5,0.5" Digits="4" HorizontalAlignment="Center" Margin="0,100,0,0" Height="20" Width="50" FontFamily="Snap ITC" FontSize="12" SegmentMode="SevenSegment" Background="{x:Null}">

                </ig:XamSegmentedDisplay>
                <TextBlock HorizontalAlignment="Center" Margin="0,100,0,0" FontSize="16" VerticalAlignment="Center" Foreground="White">
                    <TextBlock.Text>
                        <Binding Mode="OneWay" StringFormat="P2" Path="ResultatsScenarioCentral.SP"/>
                    </TextBlock.Text>
                </TextBlock>
            </Grid></GroupBox>
        <GroupBox Style="{DynamicResource OMANE_GpeBox}" Grid.Column="1" Grid.Row="2" Header="Résultats" >
            <StackPanel Margin="0,5,0,0">
                <Grid VerticalAlignment="Center" Margin="{DynamicResource ResultatItemMargin}">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="{DynamicResource LeftGridLength}"/>
                        <ColumnDefinition Width="{DynamicResource RightGridLength}"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock  Text="Cout du risque mutualisé" Margin="{DynamicResource InfoTextMargin}" />
                    <TextBlock   xml:lang="fr-FR" Text="{Binding ResultatsScenarioCentral.PPurePf, StringFormat=\{0:N4\}}" 
                                Grid.Column="1" 
                                Margin="{DynamicResource InfoValueMargin}"/>
                </Grid>
                <Grid VerticalAlignment="Center" Margin="{DynamicResource ResultatItemMargin}">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="{DynamicResource LeftGridLength}"/>
                        <ColumnDefinition Width="{DynamicResource RightGridLength}"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock  Text="Prime de risque mutualisée" Margin="{DynamicResource InfoTextMargin}" />
                    <TextBlock   xml:lang="fr-FR" Text="{Binding ResultatsScenarioCentral.PTechPf, StringFormat=\{0:N4\}}" Grid.Column="1" Margin="{DynamicResource InfoValueMargin}"/>
                </Grid>
                <Grid VerticalAlignment="Center" Margin="{DynamicResource ResultatItemMargin}">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="{DynamicResource LeftGridLength}"/>
                        <ColumnDefinition Width="{DynamicResource RightGridLength}"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock  Text="S/P Mutualisé" Margin="{DynamicResource InfoTextMargin}" />
                    <TextBlock   xml:lang="fr-FR" Text="{Binding ResultatsScenarioCentral.SP, StringFormat=\{0:P\}}" Grid.Column="1" Margin="{DynamicResource InfoValueMargin}"/>
                </Grid>
                <Grid VerticalAlignment="Center" Margin="{DynamicResource ResultatItemMargin}">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="{DynamicResource LeftGridLength}"/>
                        <ColumnDefinition Width="{DynamicResource RightGridLength}"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock  Text="Chargement Technique" Margin="{DynamicResource InfoTextMargin}" />
                    <TextBlock   xml:lang="fr-FR" Text="{Binding ResultatsScenarioCentral.ChargementTech, StringFormat=\{0:P\}}" Grid.Column="1" Margin="{DynamicResource InfoValueMargin}"/>
                </Grid>
                <Grid VerticalAlignment="Center" Margin="0,12">
            		<Grid.ColumnDefinitions>
            			<ColumnDefinition Width="{DynamicResource LeftGridLength}"/>
            			<ColumnDefinition Width="{DynamicResource RightGridLength}"/>
            		</Grid.ColumnDefinitions>
                	<TextBlock  Text="Code du moteur" Margin="{DynamicResource InfoTextMargin}" />
                	<StackPanel Orientation="Horizontal" Grid.Column="1" HorizontalAlignment="Left">
                		<RadioButton GroupName="TypeCode" x:Name="VBNET" Margin="0" Padding="0" Content="VB.NET" IsChecked="{Binding Path=TypeCode, Converter={StaticResource EnumTypeCodeToBooleanConverter}, ConverterParameter=VBNET, Mode=TwoWay}" IsEnabled="{Binding ActiverCodeVBNET, Mode=OneWay}"/>
                		<RadioButton GroupName="TypeCode" x:Name="SAS" Content="SAS" Margin="17,0,0,0" Padding="0" IsChecked="{Binding Path=TypeCode, Converter={StaticResource EnumTypeCodeToBooleanConverter}, ConverterParameter=SAS, Mode=TwoWay}"/>
                	</StackPanel>
            	</Grid>
            </StackPanel>
        </GroupBox>
        <Button Grid.Column="1" Margin="5,5,5,0" Grid.Row="3" Content="CALCULER LE SCENARIO CENTRAL" FontWeight="Bold" Command="{Binding CalculerScenarioCentralCommand, Mode=OneWay}" Cursor="Hand">
            <Button.ToolTip>
                <ToolTip>
                    <TextBlock>Lancer les calculs du scénario central du modèle 1</TextBlock>
                </ToolTip>
            </Button.ToolTip>
        </Button>
        <Button Grid.Column="1" Margin="5" Grid.Row="4" FontWeight="Bold" Content="EFFECTUER LES SIMULATIONS" Command="{Binding EffectuerSimulationsCommand, Mode=OneWay}" Cursor="Hand">
            <Button.ToolTip>
                <ToolTip>
                    <TextBlock>Lancer les simulations du modèle 1. Nécessite que les calculs du scénario central aient été exécutés et soient à jour.</TextBlock>
                </ToolTip>
            </Button.ToolTip>
        </Button>
        <Button Grid.Column="1" Margin="5,0,5,5" Grid.Row="5" Content="EXPORTER LES RESULTATS SOUS EXCEL" FontWeight="Bold" Command="{Binding ExporterVersExcelCommand, Mode=OneWay}" Cursor="Hand">
            <Button.ToolTip>
                <ToolTip>
                    <TextBlock>Exporter les résultats du scénario central sous Excel.</TextBlock>
                </ToolTip>
            </Button.ToolTip>
        </Button>
    </Grid>
</UserControl>